FROM registry.cn-hangzhou.aliyuncs.com/zhengyan/jdk8-arm64:1.3
ENV JAVA_OPTS="-javaagent:/opt/jmx_prometheus/jmx_prometheus_javaagent-0.16.1.jar=9090:/opt/jmx_prometheus/jmx_exporter.yaml"
#ENV JAVA_OPTS=""
ENV JAVA_OPTS="$JAVA_OPTS -Xms1024m -Xmx1024m -Dspring.profiles.active=prod -Djava.security.egd=file:/dev/./urandom"

RUN mkdir -p /app

WORKDIR /app

EXPOSE 8083

COPY ./geshanzsq-nav-admin/geshanzsq-nav-admin-application/target/geshanzsq-nav-admin-application.jar ./

CMD java $JAVA_OPTS -jar geshanzsq-nav-admin-application.jar